<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登陆到您的账户 - EIASYS 企业信息聚合系统</title>
    <link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
    <link href="{{ asset('css/login.min.css') }}" rel="stylesheet">
    <link href="{{ asset('css/login-responsive.min.css') }}" rel="stylesheet">
    <link href="{{ asset('layui/css/layui.css') }}" rel="stylesheet">
</head>
<body class="pace-top bg-white  pace-done">
<div class="pace  pace-inactive">
    <div class="pace-progress" data-progress-text="100%" data-progress="99" style="width: 100%;">
        <div class="pace-progress-inner"></div>
    </div>
    <div class="pace-activity"></div>
</div>
<!-- begin #page-loader -->
<div id="page-loader" class="fade in hide"><span class="spinner"></span></div>
<!-- end #page-loader -->

<!-- begin #page-container -->
<div id="page-container" class="fade in">
    <!-- begin login -->
    <div class="login login-with-news-feed">
        <!-- begin news-feed -->
        <div class="news-feed">
            <div class="news-image">
                @php
                    $bg = 'images/login_bg'.rand(1,6).'.jpg';
                @endphp
                <img src="{{ asset($bg) }}" data-id="login-cover-image" alt="">
{{--                <img src="{{ asset('images/login_bg.jpg') }}" data-id="login-cover-image" alt="">--}}
            </div>
            <div class="news-caption">
                <h4 class="caption-title"><i class="ion-ios-cloud m-r-15 fa-2x pull-left"></i> 万象时代科技提供强力技术支持</h4>
                <p>
                    wxsd provides website production and webpage design. It is a professional Internet Co of website
                    marketing. It is one of the best network companies in Wuhan local website construction service.
                </p>
            </div>
        </div>
        <!-- end news-feed -->
        <!-- begin right-content -->
        <div class="right-content">
            <!-- begin login-header -->
            <div class="login-header">
                <div class="brand">
                    <span class="logo"><img class="yun ion-ios-cloud" src="{{ asset('images/yun.png') }}"/></span>
                    登录
                    @auth
                        {{ Auth::user()->name }}
                        <a href="{{ asset(route('LogOut')) }}">退出</a>
                    @else

                    @endauth
                    <small>万象时代企业应用集成管理系统v3.0</small>
                </div>
                <div class="icon">
                    <img src="{{ asset('images/so.png') }}"/>
                </div>
            </div>
            <!-- end login-header -->
            <!-- begin login-content -->
            <div class="login-content">
                {{--                <form action="{{ asset('login') }}" method="POST" class="margin-bottom-0 layui-form">--}}
                <form action="{{ route('UserloginTo') }}" method="POST" class="margin-bottom-0 layui-form">
                    @csrf
                    @include('layouts._validate')
                    @include('layouts._message')
                    @if(!Session::get('id'))
                        {{--<p class="warning">请输入登录账号!</p>--}}
                        <div class="form-group m-b-15">
                            <input type="text" name="username" value="{{ old('username') }}"
                                   class="form-control input-lg" placeholder="请输入用户名" >
                        </div>
                        <div class="form-group m-b-15">
                            <input type="password" name="password" value="" class="form-control input-lg"
                                   placeholder="请输入密码" >
                        </div>
                        <div class="checkbox m-b-30">
                            <input type="checkbox" lay-filter="switchTest" name="remember" lay-skin="primary"
                                   title="自动登录">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary"><span
                                        id="loginspan">自动登录</span><i class="layui-icon layui-icon-ok"></i>
                            </div>

                        </div>
                        <div class="login-buttons">
                            <button type="submit" class="btn btn-primary btn-block btn-lg">{{ Session::get('id') }}登 录
                            </button>
                        </div>
                    @endif
                    <div class="m-t-20 m-b-40 p-b-40 text-inverse">
                        没有账号吗? 点击 <a href="/register.html">这里</a> 注册账号.
                    </div>
                    <hr>
                    <p class="text-center">
                        Powered by <a style="color: #999;" href="#">万象时代</a> © wxsd.cc All Right Reserved 2011
                    </p>
                </form>
            </div>
            <!-- end login-content -->
        </div>
        <!-- end right-container -->
    </div>
    <!-- end login -->

</div>
<script type="text/javascript" src="{{ asset('layui/layui.js') }}"></script>
<script type="text/javascript">
    layui.use(['form', 'layedit', 'laydate'], function () {
        var form = layui.form
            , $ = layui.$;
        $('.layui-unselect span').css('margin-top', '-1px');
        //监听
        form.on('checkbox(switchTest)', function () {
            // console.log(this.checked);
            if (this.checked) {
                $('.layui-icon-ok').css('background-color', '#007aff');
                $('.layui-icon-ok').css('border', '0');
                $('.layui-unselect span').css('margin-top', '-1px');
            } else {
                $('.layui-icon-ok').css('background-color', '#fff');
                $('.layui-icon-ok').css('border', '1px solid #d2d2d2');
            }
        });

    });
</script>

</body>
</html>